
import express from 'express';
import user from '../controller/user';
import captcha from '../controller/captcha';
var router = express.Router();

router.post('/user/login', user.login);
router.post('/user/register', user.register);
router.post('/user/captcha', captcha.send);
router.post('/user/password', user.changePassword);
router.get('/user/token', user.checkToken);

module.exports = router;
